package com.jlcindia;

public class Oopstest2 {

	public static void main(String[] args) {
		System.out.println("\n** Main started");
		System.out.println(Jlcstudent.insname);
		System.out.println(Jlcstudent.totalModulesAvailable);
		//System.out.println(Jlcstudent.sid);
		Jlcstudent st=null;
		System.out.println(st.insname);
		//System.out.println(st.sid);
		Jlcstudent.display();
		Jlcstudent st1=new Jlcstudent();
		Jlcstudent st2=new Jlcstudent();
		st1.show();
		st2.show();
		System.out.println("\n** Modifying st1 object.data");
		st1.sid=99;
		st1.sname="ravi";
		st1.phone=7795484339l;
		st1.insname="kumar";
		st1.totalModulesAvailable=3;
		System.out.println("\n** Modifying st2 object.data");
		st2.sid=88;
		st2.sname="singh";
		st2.phone=7795484339l;
		st2.insname="Jlcindia";
		st2.totalModulesAvailable=8;
		st1.show();
		st2.show();
		}

}
class Jlcstudent{
	int sid;
	String sname;
	long phone;
	static String insname="JLC";
	static int totalModulesAvailable=4;
	void show(){
		System.out.println("\n** INFO");
		System.out.println(sid+"\t"+sname+"\t"+phone);
		System.out.println(insname+"\t"+totalModulesAvailable);
	}
	static void display(){
		System.out.println("\n**static display()");
		System.out.println(insname);
		//System.out.println(sid);
		Jlcstudent st=new Jlcstudent();
		System.out.println(st.sid);
	}
}